package com.system.model.mind;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.system.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 心理测评
 * </p>
 *
 * @author system
 * @since 2024-02-20
 */
@Data
@ApiModel(description = "心理测评")
@TableName("topic")
public class Topic extends BaseEntity {

    private static final long serialVersionUID = 1L;

//    /**
//     * 主键
//     */
//      @TableId(value = "id", type = IdType.AUTO)
//    private Integer id;

    /**
     * 标题名
     */
    @ApiModelProperty(value = "标题名")
    @TableField("title")
    private String title;

    /**
     * 封面图片
     */
    @ApiModelProperty(value = "封面图片")
    @TableField("preview")
    private String preview;

    /**
     * 测评简介
     */
    @ApiModelProperty(value = "测评简介")
    @TableField("article")
    private String article;

    /**
     * 分数
     */
    @ApiModelProperty(value = "分数")
    @TableField("score")
    private Integer score;

    /**
     * 0：收费，1：免费
     */
    @ApiModelProperty(value = "0：收费，1：免费")
    @TableField("charge")
    private Integer charge;

    /*
    * 费用金额
     */
    @ApiModelProperty(value = "费用")
    @TableField("price")
    private BigDecimal price;

    /*
     * 分类Id
     */
//    @ApiModelProperty(value = "分类名称")
//    @TableField("classify")
//    private String classify;
    @ApiModelProperty(value = "分类名称Id")
    @TableField("sortId")
    private Integer sortId;

    /*
     * 累计消费
     */
    @ApiModelProperty(value = "累计消费")
    @TableField("add_consume")
    private BigDecimal addConsume;


    @TableField(exist = false)
    private List<String> images;

    @TableField(exist = false)
    private List<Sort> classifys;

//    @TableField(exist = false)
//    private Sort sort ;

    @TableField(exist = false)
    private List<Mark> markList;

    @TableField(exist = false)
    private List<Subject> subjectList;

    /**
     * 测评id
     */
    @TableField(exist = false)
    private Integer topicId;

    /**
     * 开始
     */
    @TableField(exist = false)
    private Integer begin;

    /**
     * 结束
     */
    @TableField(exist = false)
    private Integer overs;

    /**
     * 评价
     */
    @TableField(exist = false)
    private String evaluate;


    /**
     * 题目
     */
    @TableField(exist = false)
    private String tit;


    /**
     * 心理测评ID
     */
    @TableField(exist = false)
    private Integer topId;

    /**
     * 选项ID
     */
    @TableField(exist = false)
    private String choices;

    /**
     * 解释
     */
    @TableField(exist = false)
    private String explain;

    /**
     * 设置分数
     */
    @TableField(exist = false)
    private String num;



//    /**
//     * 创建时间
//     */
//    private LocalDate createTime;
//
//    /**
//     * 更新时间
//     */
//    private LocalDate updateTime;


}
